<?php require_once('../Connections/locale.php'); ?>
<?php
mysql_select_db($database_locale, $locale);
$query_riviste_scadenze = "SELECT * FROM riviste";
$riviste_scadenze = mysql_query($query_riviste_scadenze, $locale) or die(mysql_error());
$row_riviste_scadenze = mysql_fetch_assoc($riviste_scadenze);
$totalRows_riviste_scadenze = mysql_num_rows($riviste_scadenze);
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="../style.css" rel="stylesheet" type="text/css">
</head>

<body>
<fieldset>
<legend>Scelta Rivista</legend>
<table border="0">
  <?php do { ?>
    <tr>
		<td><a href="scadenze_rivista.php?id_rivista=<?php echo $row_riviste_scadenze['id_rivista']; ?>">Scadenze abbonamenti per <?php echo $row_riviste_scadenze['descrizione']; ?></a></td>
    </tr>
    <?php } while ($row_riviste_scadenze = mysql_fetch_assoc($riviste_scadenze)); ?>
</table>
	</fieldset>
</body>
</html>
<?php
mysql_free_result($riviste_scadenze);
?>
